package cn.hty.mymsg.handler.loadbalance.annotations;

import cn.hty.mymsg.handler.enums.LoadBalancerStrategy;
import org.springframework.stereotype.Service;

import java.lang.annotation.*;

/**
 * 负载均衡策略
 */
@Service
@Target(ElementType.TYPE)
@Documented
@Retention(RetentionPolicy.RUNTIME)
public @interface LoadBalancer {
    String loadbalancer() default LoadBalancerStrategy.SERVICE_LOAD_BALANCER_RANDOM_WEIGHT_ENHANCED;
}
